Create makefile
Replace types.h with stdint and stdbool

Constants in types.h are moved to constants.h
Apply type conversion in print statements
Remove unused variable
Add missing import
Add comments to pci.h