Hi Ankit,
I had same requirement. I did it in two steps.
1) Added contract document as attachment to Master/Sub Agreement using Script .
2) Used Data Import Monitor to load Contract Document CSV.
> Data Import Monitor for Contract Document will create a contract document from the attachment loaded in step 1).
Hope this helps you.
Thanks
Sai