fixed typos, added output