Clean up reader code and read namespaced symbols. Fixes #4.