Consequent program output output added, bugs with running fixed