remove unused function
small fix
more api and documentation