Remove magic numbers, fix spacing, and other code clean up in nudge code.