Added errorHandler to display err + warn

In order to display and error and warnings better to use an error handler (v.v.basic). Just to avoid cluttering in the code