Fixed bug in FlowJoin/FlowSplit and reformatted code for better readability

git-svn-id: https://thermopower.svn.sourceforge.net/svnroot/thermopower/trunk@288 80daafeb-7430-0410-91d5-8b30b0bbd841