Fixed a few bugs in localization.py with find_phase function and added functionality to data_analyze