added a phase_helper module, for commonly used functions
added a phase_helper module, for commonly used functions