Implemented most of the the basic api. Will update the documenation in README in a future commit