Fixed typos in documentation
Fixed typo in (unused) function name
Deleted unused definition