added MST
some code cleanup
changed weight to double
fixed critical bug in spanner build