Most of print.c completed