various bug fixes w.r.t. memory in ruler
Merge branch 'master' of https://github.com/kiwimatto/2dpolim-analysis