add some corrections to notRecognized and error methods.
Merge pull request #21 from akDeveloper/master

add some corrections to notRecognized and error methods.