Sundry bug fixes and an update of the LICENSE.