add To<> fcn; add comments; some superficial rearrangement
add ignore patterns