Started exchange of 1st and 2nd row in flip mode.
Framework update. Removed unused variables. Syntax fixes.