added auto-documentation feature