Added first revision of writer for cbuilder.