change coding style
fix compatibility to OpenFOAM 2.3.x
correct correlation functions