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

#363 #365 #367