Solved issues with file I/O that make it possible to export to
executable.