organized code, and added a few java docs

*hopefully this makes it easier to read all that I've made