Split out files from main installer script

Attempt at splitting out files from main install script