Completed import module feature

  Still needs some tuning, but it works overall