Primitive save functionality.
Changed document extension and allowed txt file opening.