Compilation - Fixed a few things, code3 near completeness. Still to test functions, debug and complete todo.