Replaced old setEOFCallback with new subscribe
Fixes issue #3
Improvements to code formatting
Merge pull request #4 from MichaelMauderer/issue/#3

Issue/#3