0.1.6.1

Lots of fixes and improvements. See changelog.