Correct library structure error and correct the stupid mistake in the
cpp file (I didn't declare the funcions type D'oh).