added back function header line
Fix boundary association bug

Make sure the proper location on the boundary is used. There was an
indexing problem before, when we throw away some locations.
Still need to identify which position on boundary is best to use when
analyzing fibers. Currently using the first in the list. this should be
more intelligent.