Added some validation and error handling for poll creation. Also optimized things for embedding

Fixes issue #1