bug fixes and the rest of the ekg commands