Add code style guide and reformat code. Requires C++11 compiler support.