Parameter and cost optimizations for a modular stellarator reactor