code style fixes according to jshint, added README file