Clean up endftod() to use fewer loops.
Clean up endftod() to use fewer loops.
Cleaned up some more. Extraneous comments gone.