added delimiter for errors
improved error handling
improved error handling
minor changes
made errors more visible