minor changes and fixed typos