Fixed all lint issues.
Fixed doc test.