trimmed empty lines
Fixed spelling errors in comments