Compiler/Compile: cleanup, dead code removal, documentation