minor update

Added support for return carriage detection at end of program