added ability to view a trained location-sensitive model; misc changes; seems to be a bug somewhere