updated readme
refactor some code and remove dependencies from bower.json