Corrected header/source-file relation

- now the headers only contain references to called functions
- user doesn't have to restart program for a new graph
- multiple functions can be shown at a time