dvec double precision vector instead of integer
more verbos error handling
Merge pull request #4 from urbach/upstream

Upstream