fix for loss_type problem in outside reset base
some cleanup
Merge pull request #2 from tqchen/dev

fix loss_type