fixed example && readme
replaced custom debug fn with debug module
Merge pull request #2 from alessioalex/master

fixed example from readme && added examples folder && replaced custom fn with debug module