added function to grep the pid of a process
added --context option to greppid function