fix some const problems
suppress warning in swig wrapper
suppress warning
load bonds and rep from old files