Text this: Direct and Inverse problems in Electrocardiography