Fix index and adetail, remove unnecessary files