added coffeescript support for lib, added main in lib, improved package