Fixed file closing bug, in which I never explicitly invoked the close method; Added more interactive information