Add checkpatch and formatting fixes