update library

changing code, correcting type errors,

still to solve: CPP & H, errors conserning, variables and public class
error