Fixed csv session.
Program checks file extension to run the appropriate session.
Makes sure that final entry in a document is added.