Added javadoc

Hopefully that's a good start... 
I think you might want to get rid of the last comma here.