fixed submit button and format of text output. Need permissions to write text file to file system somewhere