Changed the class Filestore in filestore.php to only use two functions for reading and writing using the approprite method for either csv files or flat files. Changed the addressbook and todo list to follow this change