incremental meds commit.

working, documentation and testing incomplete.