Separated PID into src & header
missing inline keyword
Fix missing 'inline' keywords
removed commented-out code