Small bug fixes and added the text tutorial