Fixed two mistakes of writing and added more documentation.