Loop handling

Basic for-loops work. Must still test on more complex for loops and
while loops