changed all method in Shamir to be self contained. There is no need for the gui to have access to it.