Added some comments to motifcounter.cpp