Improve gitignore setting and corresponding workspace files

commit: 1af45eb
The main change is .gitignore file.

All other changes are aligned with the modified .gitignore settings.

First clean up the workspace.

commit: d57e6cf
Fix the local compile issue. (To be observed whether to exclude in gitignore or not.)