cleaned up index. added analytics tracking