Fixed typos and changed the way of registration for MtHaml