The superintendent of such workhouse shall have the control and management of its affairs, subject to the laws of the state and the ordinance of the corporation and the rules and regulations adopted by the board for its government. And it shall be his duty to obey all written orders and instructions of the board not inconsistent with the laws, rules and regulations relating to the government of the institution.