add ideal densowave sample, fix bugs with creating optimizations, etc