Loops indenting properly now, search function almost working