added more comments to main sketch. added config vars and debug