define for id
Removed rc.c and moved code in header
better comments