graph output finished, bugfixes in text output