Added ClassBuilder class.

This is the replacement for the previous file writer classes.