Data writing to file, menu implementation in early stages