Added configuration file for JSHint; changes to Gruntfile.js; code improvements and bug fixes in library classes;