added functions for search and seq data retrieval, updated code