Features and fixes jan2014

here's a bunch of the other PR's in one

plus inferred joints are now logged
it wasn't possible to split this out into separate PR's anymore because there'd be a merge conflict if you did the PR's separately