added log spacing. b.c fixes. need openmp