Optimize controller
Gitignore
Fix some bugs
Title