core: added input class
aliases funcs: added input()
debug sync with input
main: cleanup, removed input vars through methods to make code less dependent