Fixed some bugs
Bumped version number for npm