added API calls and docs