added config options; pulled template into module