added weights to edges

will add the graphical display of weights later. also, added a few small
things to the html and css.