Added flowcharts and deleted console.logs