finish organizing modules and their prerequisite modules