Added comments to the device abstraction functions, wrote example5.c