Added text() method for value
Extend trigger function
Fixed typos