fixed incompatibility with system getline()
Fix memory corruption as of issue #2
merge Cameron's 2.3.6 official release into master