Added fileformat

Added fileformat (exporter and a simpler importer).