Reformatted code and cleaned up old code in print.h