Added javadoc. Sort of.
Added comments.