Added EOF checking to address #199
Fix for #198