More implementation in Main and System

Implemented getDistance in System, which returns the distance between 2
gates,
Finished off load in Main so that it now loads gate data as well.