Misc changes and improvements

* Added EOF support to IDataIO
* CLang warnings
* Misc bug fixes