Updates to support EOL concept in TYPETEXT

Also, cleaned up “ADBProgram”