Core ref line

fix a few bugs.  add core reference line selection.  add user manual.