Latest update

Contains some corrections in algorithms and everything about interface