minor bugfixes, doc and license added