Cleaning and started to add type building

Cleaned up the exception tests and started to build function that
generates a type based on a content type
Working on building types