Pedantically tidy up white space and standardize the encoding
Make private function protected so the class can be extended
Use currently redundant $next param
Make all private protected as it's really not conducive to extension
Removed debug
Added a bunch of stuff. Documented in the readme.
Merge pull request #1 from phil-lavin/master

Some fixes !

Thanks to phil-lanvin