Added specs and implementation for the graph API.
Removed debugging output.