change main_template to a param instead of setting
remove main_template and static_component
update documentation