added all the old code and fixed links

—