Fix edge weighting to work properly. Also make tags case sensitive (mostly so they look better displayed).