Cleaned up and documented import.js