Added error types and removed duplicate cstring header. Fixes #13.