update documentation

- add missing functions to the query language section
- document changes in 0.4.0
- split the different types of users and the relevant apis in different sections