debugs space/tab issues and adds a graphing function