Improving the installation profile and the installation scripts

Some improvements to the installation profile and the installation scripts.