added some documentation for the factor graph

I added some high level documentation for the Factor Graph.