implemented import functionality for Documents