Use short instead of float

Re-write waveform reading, drawing methods
Use double to increase accuracy