cleaned up comments for reboot code and adopted GNU coding standards