added generics to FileService, added some delegate methods as well.
updated examples to use generics with FileService.