Restructuring + Temporal

Restructured the main file and added the functionality to implement the
construction of the relationship graph