Rebasing last 2 commits:

minor i/o improvements for reading single file

cleaned up io/template methods