Added doc strings.
Fixed BUG: Removed emit call. Removed wrong call to log.