changing to iphone
convert syntax to modern objective-c syntax
adding LogBaker function, commented the core workflow