updating api docs

add gen script