Made changes to graphs; minor tweaks in code