Corrections in the AbstractCommandLineController

New way to handle options (to avoid duplicate array entries) +
"$written" is now declared as protected