Fixed a bug: global variable issue
Merge pull request #6 from chaithuzz2/master

Some changes -