comment tweaks
split the code, set up pin maps via reflection