Translation Pipeline Integration

Integrated my code fully with giza. Refactored code to conform to giza idioms and to use giza tools. Documented and tested code.
these lines are emptying the file, not creating them. later on I open the files in append mode so I don't want to overwrite them