Added class type() methods, cleaned up class constant values, updated documentation, fixed some errors related to wrong type being set in several constructors.
Modified readme.md to reflect new status.