Updated license, readme and added code