Refactored component 'instance' creation.
Renamed currentComponent to 'selected'.

Also, made addComponent not automatically select the component.