cleaned up generate function
 embed now also embeds the css
merged and reran build