updates to document loader, actual file loading added