Added error handler for STAGING and LIB directories... Added more comments