Heavily modularised, and cleaned code

Combined scaleAnalyser and tunerAnalyser into one file