properly allocating memory for sub elements. added free_strvector(). fixed bug with array allocation. added memcpy  for all added elements.