fixed typesetting and other errors