Refactor code using clang-[format|modernize].

 - closes #42.