small changes to beginning().  closer to getting it to check if there's a .txt file.