Added template choice, added option parse, added attach, clean up excel