Modula::register & Modula::exportToWindow functions

Closes #3