add simple CWriter class
Cleanup import
Initial work-in-progress version of compilation