Cleaned up debugging and info output, disabled debug output for release builds.