minor changes and comments
closefig bugfix