Made additions and minor changes

Made some additions and minor changes in several source files.