Added basic pretty-printing of patches