Added comments of workflow process to Main.js