Added open files to decide

Added the open files to the decide functions and noted a print on line
177 that should be something else, not sure what