Removed useless lines and fixed typo