Some tweaks on internal structure of the installer. Cleaner capsulated loops. Nicer code. Refactored some parts.