Add close() method

Closes #14
Remove superfluous parentheses in return statement
Proper handling of dtype's
Hide all non-API names in module namespace

This is relevant for tools that do introspection, e.g. for
auto-completion in IDEs.
WIP