fixed leaks
updated proj settings
migrated to modern objective c syntax style