Create Reference API + others - v2

Rebased on master
Comments integrated
Run the new version of checkpatch