improved stability
fixed some logical errors in last commit
some small fixes
applied astyle -ZjJyxT4
added version info, updated processecm
Merge pull request #68 from jahntheman/master

improved stability,  added version info