Adding clang-format support, and reformatting code