Moved edgel related operations to a separate 'EdgelTools' class.