Merge pull request #9 from opengm/master

pulling new updates to fix a bug
Merge pull request #10 from joergkappes/master

update from joergkappes including TRWS-changes
bugs when processing Potts functions with a single label fixed
Merge pull request #23 from homul/master

Bug with a single label for Potts models fixed. Cases of other types of functions have to be checked