Changed a few things and added a license file since this code is on Github