much error handling and logging added.  catch issue
added logging and tsuff to data.js