Removed printf statements and other minor changes

Reduced the compile size of the library by commenting out printf
statements.