major mod

better shadow
moved code to graph in gui