Refactored script and improved information in README

! fixed all errors that could be found
* refactored variables to be easier to update
* changed REAMME.md to contain better info about errors