Made this a package.
Added set-up stuff
Added edge counting for graphs.