started commenting and organizing public API