Many bug fixes and small improvements. See changelog changes.