versioninfo() function. closes #1351