fixed consumption bug
fixed rectangles allocation
pass back details remains in python, test that all parts are consumed
implemented passing of remains from C++ to C#; fixed conversion of layout