fixed bug in sed_command, added write_command, and made destination_options a class