Code completed and tested. Comments updated.