removing unnecessary stuff and adding strip whitespace and blank lines save hook