added logging for error
added logging for error
added debug statements
added comments
added code to handle web summary exception