Added octal support
Renames translate function, grammarfied some of the option entries