Added preferred relationships support. Reworked inheritance and access modifier strategy.