Fixed statement reset obsolete row issue.
Removed useless include.
Added InternalError class.
Added cache validation method.
Added proper error handling.
Improved test suite.
Added .gitignore