~gpanders/iboot

Refactor code into smaller functions
Initial commit