Finished implementing all apis and handlers