Add function index to class files