Added All the Graphs and many code optimizations