Changed few things, added license.