Fix some bugs and some  refactoring code.

I'm noob (=
add .gitignore
Remove build files
Remove user project