updating add repository method
refactored code, and started using cocoa pods