added API doc!