Fix configure file again and split some functions into library
Use more realistic supernova density for 2D simulation
Fix Makefile