Change mind about use of isfile, add extra arg for passing contents directly