Tidy latex and make code example a bit more spark2014.