Added more documentation.
Added some comments to the modified loaddata.