library export/import; started testing/bug fixing