add support for using module as a component
Merge pull request #2 from Contra/master

use as component