more apidocs and fixed bug in IndexEntity