Fixed the add method to match documentation

The `add` method expected a File object instead of the config structure mentioned in README.md. `addFile` however works with the config structure.