Add phase markers
Fix end time issue and add data download
Increase framerate
Clean for PEP8