Got write working for cbuilder.
Cleaned up loader code for cbuilder.
Fixed memory leaks in C implementation.
Refined type checking.
Added constructors and proper memory cleanup for cbuilder.