CreateSeries now errors out if given duplicate keys

Also adds a new test to check most possible errors returned by CreateSeries
Merge pull request #28 from gsalgado/vp

CreateSeries now errors out if given duplicate keys
Add more error codes and messages, refine some doc comments.