added class documentation; implemented typeOfThing method