finish porting over

put in code for getAllDocs