Updated and cleaned large portions of code.

Updated a lot of the classes by adding correct javadoc commenting. Also
formatted more accurately whilst removing unneeded class variables such
as duplicates on grossWeight that were never used. Tested with new
layout for testcases but eventually reverted to old scheme.