Close device file after reading it
Added src/inject.c to Makefile
Renamed and prepared inject.c for integrationwith smartcaps.c
Integrated inject.c