Document compilation and execution