cleanup, change pointers to refs when possible

Conflicts:
	src/graph.cpp
add icon