ios 5 and above support and custom setup

hi, i add some improves to your project, see the changes and readme for more information