added gitignore
refactor; added support for OS X 10.10