Code for my senior design project in BME490