fixed up some bugs but still don't have the ability to list documents correctly and also indiv docs