fix generate_code.py bug
Teddy's changes for ampsignals.json
add customLoopHandler() and some vin stuff