Update Quantities.java

Improved JavaDoc and formatting