fixe optimizer, add new tutorial in doc for single model analysis.
addded missing files