Embed example and added some things to the API

A continuation from #506...
pinging @bryevdv