Added javadoc

Hopefully that's a good start...