Added quite a few doc strings.