added retrieve_tile, retrieve_all functions and their tests.