Added comments explaining my code.

To do:
Relation type logic
Relations reader logic
Save function