api docs and small changes