Fix a few bugs and add a new training guideline document.