Refactored link into phLink

Refactored link class into phLink due to reported incompatibility issue