Moved text store commands to a helper file
Added cursor commands into a helper file