added last row option to generate interface
missed file in last commit