cleaned all unused stuff in main file.