Revising code

This time, it actually works how I want it to. Printing now uses padding
so it looks better.