lib: add gradient energy parameters
lib: update doc
update text1r
update misc tests
merge: remove tests