Fix markdown markup
Graph code refactored into separate files