handle mixed parameters
add test for not given params
Merge pull request #3 from ninech/embedding

better parameter handling