remove the empty lines and unnecessary comments