global error handling
add error dir
Merge pull request #41 from louridas/master

global error handling