Renamed pi_emu to pie_emu because I keep typing pie instead of pi
Much modification to PID controller. Added moving average frequency measurement. 1.0a?