Separated I/O with disk from the main data structure, and made a tool box of various I/O-actions