Update logging logic to comply with requirements. Update logging function to record tape side. Add support for many switch states.