More comments for sample generator, more generalized soft-coding for easier user tweaking