added the rest of the flowchart content. edited counterControl