Fixed some warnings (signed/unsigned mismatch etc.).
Added Eclipse project files; updated .gitignore