Added java doc and commentary to important code
Functions received javadoc
action requests also go javadoc commentary