Add gitignore file
Add settings for WebStorm IDE
Update code style and fix some bugs