added usage message and switch for export-dir and project-base dir (both $PWD by default)