update to ios 6.1 and resolve some warnings