Changed program to needed structure and polished the console output. Comments added too.
Changed program to needed structure and polished the console output. Comments added too. UML updated.