Added read wallet file function