Added basic functions in and generating the graph. Its rough but getting
the basics there first