Add output option

closes #11