Allow for changing edge weights. Minor refactorings like changing "$scope" to "this" when I can. Magically fix bug of deleting nodes without names shifting over.