Changed to a HashMap implementation so one does not need to remember which order the output streams were added in.
Fixed bug were only the LAST line gets written.
Trust the user to use their own file extensions!