Merge pull request #3 from pelikanchik/master

update from master
some changes
Merge pull request #4 from pelikanchik/master

update from master
constructor for direct_term #1
Merge pull request #5 from pelikanchik/alexg

Alexg