Fix rows and centering, add margins
Use element instead of box because the goal is to support more than just boxes
Clean up globals, move row size checking out of Box check