Implemented constructor. Refactored compiler.