Added line numbers

Added line numbers
Updated error handler to show line number