Added package doc generation method to api