Began adding java doc to the code