They shall have power to make by-laws, to appoint all teachers and fix the amount of their salaries, and may dismiss them at any time for incompetency, cruelty, neglect of duty, or immorality; shall direct what branches of learning shall be taught in each school and what books shall be used therein; they may prescribe and enforce such rules and conditions as they may deem proper for the admission