Added documentation and fixed some lint errors.
Added documentation and fixed some lint errors.