initial rewrite
WLMC now works more stable than previously
numerous fixes to merging and all around stability
fixes to energy minimization