Upped version. Reordered echo in getfile to avoid header error.