cleanup of some code and globals
unix bug; commandline returns extra param, add extra () to strip it to 1 return value
Merge pull request #157 from Tieske/some_cleanup

cleanup of some code and globals