Add close() method

Closes #14
Remove superfluous parentheses in return statement
Proper handling of dtype's