export-base refactored, added documentation