Fixed the sample application and also made the src ARC compliant.

- Changed .gitignore to work properly.
- Removed build dir from repo.
- ARC compliant now.
- Fixed src not compiling due to few files not being "mounted" in project file.