Played about with function signatures and indentation. Added generic tests for distribution modules. Added replicated distribution type that does nothing special yet. Swapped fortran compiler to mpif90.