improved the code with the showMessage function
Merge pull request #3 from jeithree/improve-master

improved the code with the showMessage function