solid arduino code for presentation. performs all desired functions. needs to be thoroughly tested still.