Additions and New structure

Added some error codes but did not add them all.

Thinking about this code structure and I am just going to make one large
class. Will modify if needed.