convert demo project to arc
fix arc
code cleanup
update for ios 5