added statespecific_module to makefile and parameter to input. added density adder to module