got the file output working. Now work on the menus an shit