Removed printStackTrace calls

A library should never print to System.err or System.out. Instead a
logging framework shoul dbe used.