adding getdoc util

rb script for automatic doc getting and serialization