Added an interface for filehandlers along with a filehandler supporting the writing and reading of objects.