Export: Specify which methods should be exported to the window object

Fixes #561
Closes #562