Enable multiline scanning, comments, move stored

scan clearing to scan() function to check for a full dictionary upon every run.