cleaned up some debugger outputs but left the commented code in incase I need it soon