Added set_canon_mode and unset_canon_mode. Close #122.