update .gitignore and fix on error in func.

- settings to ignore eclipse generated files
- fix pushToList not use the content param but the defined string.