Comments added. Obsolete code deleted.