WIP: making an install script; cleanup of profile

Trying to get the profile working on 1.0.0 and up.

Removed some duplication.