added new property pid, getter and setters for pid and hostname, getter for Id which is now built dynamically