Removed get_mode/set_mode.

  This means issue #20 is almost done.