changing to factor graph arch
Merge pull request #5 from aroma123/master

changing to factor graph arch