How to use the libcom library