implemented the looping states. OF_LOOP_PALINDROME not working yet though.
housekeeping (removed some commented out code from previous merge)
using a ptr for the FBO.