Improve Core API documentation, added small example