added closeonmax documentation
Merge pull request #2 from functionreturnfunction/master

Testing and a bugfix
Merge remote-tracking branch 'upstream/master'