Code polished, commented and JSLint compliant [Fix #9]
Merge pull request #11 from dgraziotin/master

Code polished, commented and JSLint compliant [Fix #9]