debug mode now uses hard coded submissions; refactor, added comments