Accept away_mode and run_mode options for writing

Consistent with read operation
Default to setting away mode with a boolean