added magnetization todo
added missing cudaFree's in find_xy_parameters