Fixed end of period shift time bug, added common.py for quick access to diagnostic functions