Added docs for new isMain() function.