runtime api comments; debugdraw refactoring.