Updated documentation: Typos and keep track with implementation.