Add comments, add redirect in index function