added comments and nesting resources

Signed-off-by: ai <ai@ai.com>