Generalized permeability

Also got rid of a lot of warnings. DON'T TRY TO FIX THE ONE THAT IS
LEFT. That field is actually used but I think by another class. Also
moved some obsolete scripts to their own folders.