remove trailing whitespaces and some other stylish fixes