Generate source maps

Closes #149.