Removed printf dependencies from normal output, and fixed some printing bugs.