Made graph scalable and better written
comments/better names