Fixed major bug in stability calculation code.
Removed debugging symbols.