SplitReader follows file spec more closely

Added support for iterating over files. Also added support for the
readlines() function