Consolidated toString, rangeCheck, and equals functions amongsts the headers
Updated comments and class definitions to work with doxygen