slight code style cleanup for api and also adding some docs for component feature api