implemented dictionary for /better/(?) error code handling -> less hard coded, repeating strings
Merge pull request #2 from TPei/master

implemented dictionary for error code handling