Added LOTS of Javadoc comments.
Even more Javadoc comments, mostly describing variables. Feel free to modify them if they're incorrect.