more robust background import
solves #175
preview instead of type;
fix #179
fix function scopes
Merge pull request #182 from chrisrhoden/csv_import_for_air

Csv import for air
Merge branch 'csv_import_for_air'
fix for #135