Added analog config menu, added some input validation, some cleanups