removed hash comments that were intended for another developer
removed explicit count declaration
fixed spelling
refactored embedding code