Edited loops.md and Added Shape_printing.md

Moved Shape Printing section out of loops.md into its own section and
revised each document.