formatting
updated todos
multiple loop types that can be switched on the fly