fix template and update document