cleaned up error handling

fixed author regex match issue
removed debugger statement