minor
Implemented first differentials.

Added some I/O code.