fixed the input scaling and merged the input processing into the main .toe file