Broke main() up into different function calls.
Implementing push button exit strategy is in its infancy.

Trying to create data file with date and time. Still buggy
Major restructuring to the code.

main() was broken up into several function calls. The data output file
is now created in a specified directory with a name equal to the date and
time when it was created.