Fixed crest and trough ratio checking.
Further cleaned up logic +commenting.
/Finally/ added Message class for easy Toasts