Basic functions using the API completed. Next step to write the functions we require and add graph generation functionality