Added comments. Minor changes.