06/06/14 ai changed so users can enter top directory as a global variable