fixed typos and added docs