small tidy up
small changes. ignore.
.
added some comments to explain the code