Added clang-format rules. Reformatted source code.