fix minor error and delete unused code
Merge pull request #2 from stumpyfr/fixRestError

Clean code and change wording