Fixed typos, merged documentation, added references