Minor changes

Fix to engine, text command and number processer. Some field and methods
are set to private or moved