Multregt

this is the successor to #373. since @totto82 is currently a bit short on time, he asked me do handle this issue. the PR has been rebased on top of the current master, so it should be ready to be merged...