commented out some things that were not functioning. I don't know what they are supposed to do. Now things compile at least. Let's sort this out later.