Begin refactor of PDM code.

Add critical value failure mode handling.
Fixing timing variables.
Remove overcurrent code.