better help message and write out to a custom file