fixed a few bugs, and better logging
fixed to account for bad LRMI data