Added an error handler class, some docs and UT for var processor