add license, readme and small fix