added basic templating for slave configuration

close #7