API code simplification
fix test page
fix incorrects inactive class in docs