Fixed small bug with 'text' and updated documentation.