First-cut implementation of MOScap done.

1. As usualy, numerical solution is abosulute non-sense.
2. As is to expect from numerical methods I guess.