added Enchantery building, simplified research system and improved job
code