Merge pull request #2 from treygriffith/master

Prevent illegal invocation by avoiding the null parentNode
refactor conditional
Makefile
0.1.1
refactor into a `while`