implemented import contacts. fixed some bugs.