Fixed bin name (rhuff)
Moved printf to fprintf for errors, small changes
A few other small code fixes, fixed -O makefile flag