added file handling, menu, new record and print all functions