Added comments to source files and cleaned up stuff a bit. More to follow.