Fixes consistent misspelling of 'substitute'.
Replaces typo 'pased' with 'passed'.
Replaces typo 'Takaway' with 'Takeaway'.
Fixes consistent misspelling of 'optimized'.

Closes #555
Merge pull request #567 from jbnicolai/fix/555

Fix/555