added some comments and helpful print statements on finish