Compensated for system phase shift

Added variable for system phase shift
Added function to get standard phase angle