New working version of Arduino code. All updates should be done in RedCat_Main directory