Added a new centerPrint() function which prints stuff centered on x axis. Used to simplify code in a few places.