Debugging PCA computation. Added generate_lists script. Minor changes in common.lua and env.sh