updated documentation and GSF function based on pull request #15