Use zero based arrays.
Update before switch to C++.
Add C++
Use references in mcstep.
Remove dead code.
Use full compile flags.
Use std::max, std::min.
Cleanup docs.
Update docs.
Zero array access in mcsrch.
Use int for n.
Use stl in places.