xNAS gem code compacting

+ Compacted print_result code
+ Added rollback actions