changed line breaks accordingly to prof's suggestion and fixed some typos