Changed example program to print proper outputs
Fixed handling end-of-file and newlines
Add documentation of hacky serialization
Updated parse and translate to both be able to take files and stdin