Updated to work on installation profiles. Extracted profile to an argument. Added extra categories of features