Added SmartGetClientPID(target: integer): integer; to return pid of a target, renamed SmartGetPID to SmartGetAvailablePID. Fixed available pid bug.