minor corrections
updated copyright and comments