update document. source maps and pretty print