Adding documentation, fixed a typo