resolves issue 36: formatting in custodial events

...of code; regularized handling of spaces and punctuation and added trapping for sparse data