Got nested loops working.

- Nested loops now work properly.
- Byte wrapping is now easily disabled, with an argument.
- Changed a few variable names.
- Shaved a few bytes off of the code by removing useless parts.