added #id to edge class; fixed a couple typos in exception handling