Set outfilesuffix attribute to extension of source file

Resolves #46 and improves #45