change function performConversion to accept a string

instead of a file, so that it can be used directly when importing the package, w/o file i/o.
return a string from function performConversion