build again with Xcode 5.1
fixed most of the warnings
fixed some warnings
fixed export statistics to csv/txt