Fixed typos and added more documentation