Removed unreliable selection character counts. Added option for line ending format.