Working on the readme and adding MIT licence
Adding debug messages and removing unneeded error handling