Remove unnecessary empty lines and add some comments