Fixed many typos in the code and docs.

Found using: https://github.com/intgr/topy

Closes #282

Signed-off-by: Tomaz Muraus <tomaz@apache.org>