Added podspec file
Fixed dereferencing issue