Merge pull request #6 from pelikanchik/master

update from master
direct_term save via constructor
Merge pull request #7 from pelikanchik/alexg

Alexg