Small update to shapes module and new parameter in adjoint function to specify range space