Implemented save as (closes #6).