src/api/document done

All files in src/api are now done.
Update the guidelines and fix broken syntax