fixed getopt; fxnSelftestFull and fxnPrintDebug working