fixed some typos, added docs