Bug fixes, started new features

Fixed major bug caused by copying textures in framebuffer to a new
texture before all operations are finished.
Implemented parameter omega to control step size of update of F.