update generated files
restructure codegen
test: skip hardreset()

hardreset does not work on atmega88
improved counter
fixed tests