Addition of fix to ddl to fix real parameters; added checks on ch and
freq to avoid common problems with data