Fixed close bug
Changed formatting of output