bugfix for complex data
example for complex numbers added
update error message
Merge pull request #39 from Chilichiller/master

bugfix for complex data