extend multiclass nb
fixed errors
Merge pull request #1914 from Saurabh7/multiclassnb

extend multiclass nb