completed implementation of Pim's MST + renamed files + added formatting to output