Generate separate header file

- Converted generator::translate to take filenames as arguments

- Parameters were passed to translate() in the wrong order

- Header file is now correctly added

- Added ex.h to .gitignore