PROGRAM_DRIVER modification: counter and WE settings
Debugging of program driver, fixed bugs in portout monitor.