Fixed copy and clone for mda objects. Started grid function. Renamed hierarchy functions.