First draft

- missing math::pow prevents compile so far
Fix dp/dt mismatch and missing factor