added Javadoc and adujusted formatting
Signed-off-by: jgould22 <jordangould@gmail.com>