added random spanning tree and first version of ws loop creator