added debugging code. I am convinced it is "correct" but would like to store print statements for future potential use