Added file overview.
Code refactoring. Added constants to specify a position relative to the element.
Even more code re-factoring.
Made relation flags binary. Normalize relations to prevent duplicates.
Adjusted styles in dev sample.