Included eagerly awaited 'component' function for adding
components using a function and putting the angular/qh modules
into that function.
Added simple exception to getmodule function.