Fixed spelling error and removed some commented code