Various MSLDS Bug Fixes

This pull request fixes a number of minor and serious errors with the MSLDS code. The plusmin and muller_potential examples are now debugged, and the code is tentatively ready to run on a real protein dataset at this point.