Adding ngals error as input
Added capability of setting GALAXY_DENSITY free with error