modify some bugs
mkdir before setting user profile
Merge pull request #24 from danny821014/master

fix some bugs
Merge pull request #25 from pichuang/master

Merge from master