finished the folder api functions, done most of the document functions, added in handerling for bad responses, cleaned up code, added more documentaion