Merged Buttons into Run, Clear, and get File

doc also now receives files as parameters