Added support for sourcemap and sourceRoot parameters.

Hi, I added support for two parameters that help creating source maps, useful for debugging.
Note that now the code is formatted correctly.