rewrite the file support to handle live tailing

Also clear the window every once in a while