fixes readme and change the recommended way to export functions