Exporting sourcemaps

Fixes #30
Coding standards: Re my previous comment extra new line before a condition or not..