Add component support
Merge pull request #3 from RobLoach/component

Add component support