cleaning up and java docing
added javadocs and cleaned up code not needed
Merge pull request #376 from rjynn/master

created javadocs and cleaned up code not needed