fix spelling + refactoring
Merge pull request #5 from MaherJendoubi/master

fix spelling and some code re-formatting.