Use C++11
Misc. cleanup
Fix char* warning
Add log system