Added testing of target and project parameters. Also made the .xcodeproj extension optional for the project parameter.