Merge pull request #2 from bilalq/master

Fix style inconsistencies & global leakage
updated demo