added example to show how to access params with NSProcessInfo
added shebang line to existing examples for documentary purposes