refactor some page code
come back to libgit2
also print error for indexing
refactor search code
update README