fix strnstr
gitignore objects and DS_Store
strchr using pointers