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

Add component support