added offline doctor, now inserting the ECG data correctly, still need to debug why it's not taking in UI values, fixed some bugs in offline mode