Basic text entering is done
Moved some functions to the text buffer