Reordered Code and Added File Size Check

Moved the main append subroutine out of the button event. Added a check
for file sizes of the new command files before running the main append
subroutine.