improvements

Removed event listener for InvokeEvent and changed parsing for cmd line
args to use == 0 instead of >= 0