fixing compile errors. This commit is buildable and running a basic test program
Ignores logfile output.txt