Fix incorrect curve in Secg factory
Pass all tests and remove unused functions/classes