Added files.c, added open_file()/close_file(), made everything fit for the new functions.