Updates dependencies, improves exports (#361), and fixes #366.