improved stability
fixed some logical errors in last commit
some small fixes
applied astyle -ZjJyxT4
added version info, updated processecm