changing api and working on documentation