updated package version for npm
fixed model structure
re-factor code
Fixed APIs