fixed a number of bugs
updted podspec