fixed join in fold code;
simplified code;
enabled fold code;
Merge pull request #3 from niksu/master

fixed join in fold code;