Splitting the library into the c part that does the work and the node interface.