Fixed documentation

whitespace, indent and blank line
Fixed compile warnings