1. refractor the structure. 2. merge multiclass
Merge pull request #21 from ZhengyangL/master

1. refactor the structure. 2. merge multiclass