improved prompts, change to header handling and really write files now