Added debugging on per line bases. Also added ability to center text horizontally