Fixed "Cannot read property 'type' of undefined"
Merge pull request #6 from bezoerb/patch-body

Fixed "Cannot read property 'type' of undefined"
s/assignement/assignment
Merge pull request #7 from jmgunn87/master

s/assignement/assignment
Allow buffer as input (Fix #1)