Refactored the some of the initialization code out of main() and into its own file...