Removed debug output.
Removed debug output.
Corrected range check for seek.
Removed debug output.
Removed debug output.
Turned on optimization.
Added out-stream flag.