Fixed the PSD to be accurate.

This was actually not taking into account negative numbers, meaning that
they would take away from the actual magnitude instead of adding to it,
causing incorrect results when looking at the certain power levels.