Added library export functionality