rewrote line selection to include all line data in ancillary file
various small bug fixes, also moved many procedures to threed_utils
sample changes, filter updates, parameter file changes