added Grunt build and fixes coding styles