removed redundant logic
fixed typos
updated function name
updated let syntax
Merge pull request #18 from thSoft/patch-1

various example & text fixes