Add documentation, Refactor EndPoint & Relation classes into it's module