Gentle nugdes to make the code run, but help needed with stability, #79

Core dumps and hanging python point towards pointer issues. More than one, as the problems occur at different stages in execution.