This officer is appointed by the secretary of state; his duties are to attend to the business of the office under the superintendence of the secretary; and when the secretary shall be removed from office, by the president, or in any other case of vacancy, shall, during such vacancy, have the charge and custody of all records, books and papers appertaining to such department,