beaglebone: bare metal c example modified, some comments and minor changes

Signed-off-by: Samuel Casa <samuelcasa9@gmail.com>