fix some codes and rename makefile
fix for matlab outputs
applied openmp for density