added printed instructions in main