Fixed spelling and optimized. Closes #13. Thanks to Bulwersator.