#331 Fixed edge layout misbehavior. Did not get help from the documentation or examples unfortunately. Fixed some other issues as well. More to do.