generic implementation of module 'file' and testing
modified readme