added doctrings to import functions,

Also added unittests