improved memory handling of importuvs() function to be more friendly to low memory machines. Also added appropriate error handeling.