Gen patches checkpatch support

Solves #10