Bug fixes and license file