Started cleaning up loop example
Major cleanup of loop examples