Henry updated modules, added test code for phase correction