Setup most of the functions for text

does not build, linker problem