changed cell_t struct to include size, also added index to arg vars