added printing functionality to main
printing status in main