cleaning up and removing lots of old code. working in files.