Exporting sourcemaps

Fixes #30
I am afraid this will lead to pollution of the namespace as it isn't really internal. However we might want to address this later.