included allocatable G matrix
included allocatable G matrix
the new d array was added
all variables that need to be allocatable are now allocatable
just started adding the matrix selector function