Dev

I have added comments to many sections of uncommented code.