Changes data representation of files (now they are just long strings).  Adds some error handling and assertions.