Code style and documentation improvements
- Improve variable declarations across the library (great thanks to @afonsopacifer);
- Fix update and dispatch documentation (@rogefm, @raffaeldantass and @maclovin)
- Add documentation for dispatch and update functions signatures