added pgrep like function with a little more info