Removed C++ style comments; Added a debug option; corrected reverse patch for BeagleBone.