Thxgen modified to write to user home directory (if the selected directory doesn't exist, it will have to be created first)