Added podfile. Fixed a bug in which optional methods in delegate not implemented would cause a crash.