added code to output a skillgraph to files, added test cases for the new functionality