Fixed the minification. Added some more documentation.