update docs
remove deprecated functions and improve docs