Updated install profile
fix undefined variable, and some code cleanup
Merge pull request #1 from OS2Valghalla/f/update-install-profile

F/update install profile