added oldcode.js and moved obsolete code to that file, its not meant to be run, just to hold old code(and clean up files run by the program)