More function additions

write function, set pins, my nibble function brought into the kernel.