mergePixelsInLine mostly complete, in debugging state.

Started adding sparse documentation. Made more functions unexported.
Beginning of tests for mergePixelsInLine