Refactored a bit.
Moved setup functions into their own source file.
Added a button to select payload files.