Delete useless lines and comments