Added method to obtain process id

Just a basic method to obtain the process id from a process.