Created init, search, and retrieve functions

**not complete**