Added subscript method

Added a method to work out the subscript of a number for more clarity
when printing structural formulas.
Javadoc

Updated some javadoc / comments