Updated manual.tex

- fixed typos
- fixed code examples
Merge pull request #5 from sprankhub/patch-3

Updated manual.tex