Fixed some typos in the code and docs

Closes #381

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