Updated documentation.
Fixed compilation errors.