added more print statements and fidfixed some things
added more print statements and fixed some things