Automatic Doc Generation Logic added