modified:   lib/api/import.js
- changed variable names
- changed global variables in for loop to local variables