Closes #60 printing the mode used (program.mode was undefined)