using nikitas alg to generate relative layout tree
completing merge
bug fixes