re-organized source.
outlined functions that need to be implemented.
added struct for graph nodes.