To provide for the regulation of admission of persons to, their residence in, and their departure from the Republic; and for matters connected therewith.