Moved bootstrap definitions to new file

Cleaned up main script
Fleshed out definitions for bootstrap further