Now finally usable

Fixed several bugs

Now any number of vertices is possible