to fix the text input problem - go to File -> Form Properties -> Preview tab -> select Interactive Form on the Preview Type. how your field expands.
rename the subform to a better name (for example myTable) and move the button from the master page to your main area
the code for the button:
myTable.Table1.Data.instanceManager.addInstance()