Moved exceptions to class files, created getObjectName method

Changes
* Turned protected properties to private
* Moved exceptions to class files
* Created getObjectName method
* Added getObjectName test