Wrote component generator helper function

Simply adds the componentName() function to ease writing new components.