Added more API documentation and made the playground example better.