code to remove files

1. Remove build file references when using remove_file.
2. Add code for removing group by id.
3. Add code for removing group by name.

Tested on Xcode6.
remove unnecessary output