Fix return value documentation
Add small DOM menu example
Improved atom write example, removed NULL arguments