started work on the compiler; fixed a simple bug in record instantiation