fix c++11 issues and add info printing to main