Used Stan approach in error handlers

Fixed many of previously mentioned issues, still would like to limit
LOCATION printout to the offending section.