attached keyboard input script and reorganized some files