tested some thread stuff. Input set up, but still doesn't write to a file