-o5 does not do anything. -o3 is the maximal level of optimization.
cout -> cerr, and removed unused variables/commented code
Merge pull request #11 from jg-you/streams

Use error streams and misc cleanup.