Fixed the panning problem when sound comes from behind the listener. Also re-factoring.