autoformat files
clean up error classes
removed unused classes
cleaned up language classes
encapsulated some fields
added some comments