Add comments to translator.java
Remove redundant arguments from fixLocalSafety and fixGlobalSafety functions