Added jruby (1.8 and 1.9 modes) to travis. Added lots of comments to code.