Grunt, docs, tests

Fixed minified JS, updated documentation, finished tests.