Finished preprocessing

Gave up on that stupid UI thing, preprocessing now
works great, using median and wavelet filtering