corrected render flicker bug (inverted is not required... why?); added todos in code