some comment changes

this code is still quite messy and badly commented.