Refactor Compiler.java
Fix tests
Update Translator.java