[Miracle] set up a miracle-entity.h and .cpp, fixed a typo in miracle manager.h