minor cleanup, added license etc.