Updated - procedures altered and partially tested. Initial results are correct. A start has been made on the All_Analysis function.